home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2836 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  804 b 

  1. Path: wabbit.cc.uow.edu.au!not-for-mail
  2. From: am@wraith.cc.uow.edu.au (Abimanju Manoharan)
  3. Newsgroups: comp.lang.c
  4. Subject: [Q]How can I read ints and floats by using fgets() ?
  5. Date: 24 Jan 1996 22:58:15 +1100
  6. Organization: University of Wollongong, NSW, Australia.
  7. Message-ID: <4e56sn$p6n@wraith.cc.uow.edu.au>
  8. NNTP-Posting-Host: wraith.cs.uow.edu.au
  9. X-Newsreader: NN version 6.5.0 #5
  10.  
  11. Hi everybody,
  12. I have a small problem in my c program. I want to read a file for exe.
  13. the file (file size is not constant):
  14.  
  15. 4 11
  16. 2.5 4 13 3.7
  17. 5 4 2.1
  18. 2.4 
  19.  
  20. I have to read each line by using fgets(). then I have to convert this 
  21. string. There are float values and int values are mixed.
  22. Du you any idea? or du you have another way to read this?
  23.  
  24. Could you kindly send a e-mail to me.
  25.  
  26. thanks
  27. A.Mano
  28.  
  29. am@cs.uow.edu.au
  30.  
  31.  
  32.